package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.domain.vo.PageBeanVo;

public interface MovementService {
    /*
    * movement是动态详情，是SpringBoot整合MongoDB，并把实体类和数据库连接起来了
    * */
    //发布动态
    void saveMovement(Movement movement);

    //查询我的动态
    PageBeanVo findMyMovement(Long userId , Integer pageNum ,Integer pageSize );

    //查询好友动态
    PageBeanVo findFriendMovement(Long userId , Integer pageNum ,Integer pageSize);

    //查看推荐动态
    PageBeanVo findRecommendMovement(Long userId , Integer pageNum ,Integer pageSize);

    //查询movement，publishUserId
    Movement findById(String publishId);


    //查看某用户的所有审核通过的动态,动态添加条件查询以便，审核页面使用
    PageBeanVo findMyMovementByPage(Long userId ,String state ,Integer pageNum ,Integer pageSize);

    //更新审核结果
    void updateMovementById(Movement movement);
}
